Skip to content

Fix curl_close() deprecation in PHP 8.5#248

Open
kayw-geek wants to merge 1 commit intosegmentio:masterfrom
kayw-geek:fix/deprecate-curl-close-php85
Open

Fix curl_close() deprecation in PHP 8.5#248
kayw-geek wants to merge 1 commit intosegmentio:masterfrom
kayw-geek:fix/deprecate-curl-close-php85

Conversation

@kayw-geek
Copy link
Copy Markdown

@kayw-geek kayw-geek commented Mar 17, 2026

Summary

Test plan

  • Verify no deprecation warnings on PHP 8.5
  • Verify backward compatibility on PHP 7.4

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@kayw-geek
Copy link
Copy Markdown
Author

Hi @MichaelGHSeg, Could you please review it when you have time?

@kayw-geek
Copy link
Copy Markdown
Author

Hi @MichaelGHSeg, friendly bump on this one.

I understand this library is in maintenance mode, and this PR fits squarely within that scope — it's not a new feature, it's a critical maintenance fix.

PHP 8.5 has been out for months and curl_close() now emits deprecation warnings on every HTTP request.

For high-traffic applications, this floods logs with thousands of notices, which is exactly the kind of issue maintenance mode should address.

The fix is a one-liner, zero risk, no behavioral change.

Would really appreciate getting this merged. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant